package com.biz.service.HService.user;

import java.util.List;
import java.util.Map;
import com.biz.model.Hmodel.sys.TSysUser;
import com.biz.model.Pmodel.sys.PsysRole;
import com.biz.model.Pmodel.sys.PsystemLog;
import com.biz.model.Pmodel.sys.Puser;
import com.biz.model.common.Pager;
import com.biz.service.HService.sys.BaseServiceI;


public interface UserServiceI extends BaseServiceI<TSysUser>{
	List<Puser> findByPwd(Puser puser) throws Exception;
	/**
	 * 加载系统日志
	 * @param pager
	 * @return
	 * @throws Exception
	 */
	Pager<PsystemLog> getSystemLog(Pager pager)throws Exception;
	/**
	 * 显示账号信息
	 * @param pager
	 * @return
	 * @throws Exception
	 */
	Pager<Puser> findByType(Pager pager)throws Exception;
	
	/**
	 * 加载角色
	 * @return
	 * @throws Exception
	 */
	List<PsysRole> findRole()throws Exception;
	/**
	 * 查询账号是否存在
	 * @param loginName
	 * @return
	 * @throws Exception
	 */
	boolean findbyLoginName(String loginName)throws Exception;
	/**
	 * 保存新增
	 * @param puser
	 * @throws Exception
	 */
	void saveUser(Puser puser,Puser loginUser)throws Exception;
	/**
	 * 更新账号信息
	 * @param puser
	 * @param loginUser 
	 * @throws Exception
	 */
	boolean updateUser(Puser puser, Puser loginUser)throws Exception;
	/**
	 * 删除账号
	 * @param ids
	 */
	int deleteByIds(String ids,Puser loginUser)throws Exception;
	void updatePwdForChange(Puser puser) throws Exception;
	
	List<Puser> findExportExcel(Map<String,Object> map)throws Exception;
	Puser getinfoById(String id)throws Exception;
	List<Map<String, Object>> LoadLevel()throws Exception;
}
